package com.jk.bgmainconsumer.service;

import com.jk.damaicommon.entity.TicketEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @描述
 * @参数 $
 * @返回值 $
 * @创建人 lgf
 * @创建时间 $
 * @修改人和其它信息
 */
@Component
@FeignClient("bguserprovider")
public interface TicketService {
    @RequestMapping("ticket/couponList")
    List<TicketEntity> couponList();
    @PostMapping("ticket/add")
    void add(@RequestBody TicketEntity ti);
    //删除优惠券
    @RequestMapping("ticket/deleteCoupon")
    void deleteCoupon(@RequestParam Integer id);
}
